package com.simon.mctm.base;

import com.simon.mctm.utils.SystemCode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 基础页面参数
 * @author Jiajie.Mao
 * @date 2018/6/7 23:06
 **/
@Data
public class PageRequest {

    @NotNull(message="页码不能为空")
    @ApiModelProperty(value = "页码")
    private Integer page = SystemCode.DEFAULT_PAGE;

    @NotNull(message="单页容量不能为空")
    @ApiModelProperty(value = "单页容量")
    private Integer pageSize = SystemCode.DEFAULT_PAGESIZE;

}
